package spring.framework.beans.factory.support;

import spring.framework.beans.BeansException;
import spring.framework.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * @author fun.pengzh
 * @class spring.framework.beans.factory.support.InstantiationStrategy
 * @desc
 * @since 2021-10-17
 */
public interface InstantiationStrategy {

    Object instantiate(String beanName,BeanDefinition beanDefinition,Constructor constructor,Object[] args)throws BeansException;

}
